package com.iw.adoms.utils;

/**
 * Created with IntelliJ IDEA.
 * User: xi
 * Date: 13-10-10
 * Time: PM11:04
 * To change this template use File | Settings | File Templates.
 */
public class QrCodeUtil {

    public static String getCode(String s) {
        s = s.trim().replaceAll(" ", "");
        int index = 0;
        if (s.contains("=")) {
            index = s.lastIndexOf("=");
        } else {
            index = s.lastIndexOf("?");
        }
        return s.substring(index + 1);
    }

}
